package com.ling.payservice.controller;

import com.alipay.api.AlipayApiException;
import com.ling.payservice.service.AliTransferToAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: liangling
 * @Date: 2020/12/31 17:15
 * 支付宝转账 alipay.fund.trans.uni.transfer(单笔转账接口)
 */
@RestController
public class AliTransferController {


    @Autowired
    private AliTransferToAccountService transferToAccountService;


    @GetMapping("/transfer")
    public void Transfer() throws AlipayApiException {
    transferToAccountService.transferToAccount();

    }
}
